//
// Created by tender on 17-9-14.
//

#ifndef RICHERS_MENUITEMCOMP_H
#define RICHERS_MENUITEMCOMP_H


#include <memory>
#include "IMenuComponent.h"

class MenuItemComp: public IMenuComponent{
public:
    void show() override;

    int checkType(int id) override;

    void print(long id) override;

    std::vector<std::shared_ptr<IMenuComponent>> getchilden() override;

    void add(IMenuComponent *items) override;

    void setText(const std::string &text) override;

    void setDesc(const std::string &desc) override;

};


#endif //RICHERS_MENUITEMCOMP_H
